#!/usr/bin/python

import zlib

class ZlibCompressor:
	def __init__(self, compressionLevel=6):
		self.level = compressionLevel
		
	def compress(self, string):
		return zlib.compress(string, self.level)
	
	def decompress(self, string):
		return zlib.decompress(string)